package com.yike.product.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.yike.common.pagination.BasePageOrderParam;

import javax.validation.constraints.NotNull;

/**
 * <pre>
 * 商品分类 分页参数对象
 * </pre>
 *
 * @author Sakura
 * @date 2024-09-02
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "商品分类分页参数")
public class CategoryPageParam extends BasePageOrderParam {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("上级分类ID，顶层为0")
    private Long parentId;

    @ApiModelProperty("分类名称")
    private String name;

//    @ApiModelProperty(value = "店铺ID不能为空", required = true)
//    //@NotNull(message = "店铺ID不能为空")
//    private Long shopId;
}
